package com.oocl.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;


@Entity
@Table(name="deliver_info")
@GenericGenerator(name = "deliver_uuid", strategy = "uuid")
public class DeliverInfo implements Serializable{
	@Id
	@Column(name="did",length=36)
	@GeneratedValue(generator = "deliver_uuid")
	private String did;//原来的did在页面中用el表达式中是关键字，不方便使用，所以做了修改
	@Column(name="contact",length=20)
	private String contact;
	@ManyToOne
	@JoinColumn(name="cid",referencedColumnName="cid")
	private Clients client;
	@Column(name="addr" ,length=50)
	private String addr;
	@Column(name="tel",length=11)
	private String tel;

	

	public DeliverInfo() {
		super();
	}


	public DeliverInfo(String did, String contact, Clients client, String addr,
			String tel) {
		super();
		this.did = did;
		this.contact = contact;
		this.client = client;
		this.addr = addr;
		this.tel = tel;
	}



	public String getDid() {
		return did;
	}

	public void setDid(String did) {
		this.did = did;
	}

	
	public String getContact() {
		return contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

	public Clients getClient() {
		return client;
	}

	public void setClient(Clients client) {
		this.client = client;
	}

	public String getAddr() {
		return addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}
	
	
	
	
	
}
